package com.lrs.java.designPattern.temp;

public class StaticProxy implements IService {

	IService service = new ServiceImp();

	public int doSomething() {
		System.out.println("do before!");
		service.doSomething();
		System.out.println("do after!");
		return 0;
	}

	public static void main(String[] args) {
		IService service = new StaticProxy();
		service.doSomething();

	}

}
